﻿@model eShop.Web.Mobile.Models.CouponListModel
@{
    Layout = null;
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>优惠劵-@{@WorkContext.ShopConfig.SiteTitle}触屏版</title>
    @Html.Raw(WorkContext.ShopConfig.SEOKeyword)
    @Html.Raw(WorkContext.ShopConfig.SEODescription)
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="@{@WorkContext.CSSCDN}/mobile/themes/default/css/base.css" rel="stylesheet" type="text/css">
    <link href="@{@WorkContext.CSSCDN}/mobile/themes/default/css/ucenter.css" rel="stylesheet" type="text/css">
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/jquery.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/common.js" type="text/javascript"></script>
</head>

<body>
@Html.Partial("_header")
<script type="text/javascript">
    $("#headerTitle").html("优惠劵");
</script>

<div class="myAssetsNav">
<a href="@Url.Action("paycredit")"><strong>@WorkContext.PayCreditName</strong></a>
<a href="#" class="hot"><strong>优惠卷</strong></a>
</div>

<div class="cards">

@foreach (DataRow row in Model.CouponList.Rows)
{
<div class="card yellow-card">
<strong class="price">¥@row["money"]</strong>
<span class="type">@row["name"]</span>
<span class="expire">
        @if (TypeHelper.ObjectToInt(row["useexpiretime"]) > 0)
        {
        @TypeHelper.ObjectToDateTime(row["activatetime"]).AddDays(TypeHelper.ObjectToInt(row["useexpiretime"]))
        }
        else
        {
        @row["useendtime"]
        }
到期</span>                
</div>
}

</div>


@Html.Partial("_footer")
</body>
</html>
